package com.bird.business.service.impl;

import com.bird.business.dao.CostControlMapper;
import com.bird.business.domain.CostControl;
import com.bird.business.service.ICostControlService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author wangdan
 * @version 1.0
 * @date 2020/4/30 8:47
 */
@Service
public class CostControlServiceImpl implements ICostControlService {

    @Autowired
    private CostControlMapper costControlMapper;

    public List<CostControl> selectByEntity(CostControl costControl) {
        return costControlMapper.selectByEntity(costControl);
    }

    @Override
    public List<CostControl> selectByMap(Map map) {
        return costControlMapper.selectByMap(map);
    }

    public void insertCost(CostControl costControl){
         costControlMapper.insertCost(costControl);
    }

    @Override
    public void deleteCost(long id) {
        costControlMapper.deleteCost(id);
    }

    @Override
    public void updateCost(CostControl costControl) {
        costControlMapper.updateCost(costControl);
    }
}
